<div class="p10">


<form action="<?php echo $this->url(array('action' => 'doedit')); ?>" method="post" enctype="multipart/form-data">
<h2 class="h1">编辑“最”文章</h2>
<div class="admin_table mb10">
<table width="100%" cellspacing="0" cellpadding="0">
	<tr class="tr1">
	<tr class="tr1">
		<td class="td1">分类</td>
		<td class="td2"><?php echo $this->formSelect('category_id', $this->article['category_id'], null, $this->categories); ?></td>
	</tr>
		<td class="td1">标题</td>
		<td class="td2"><input type="text" name="title" size="80" value="<?php echo $this->article['title']; ?>"></td>
	</tr>
	<tr class="tr1">
		<td class="td1">描述</td>
		<td class="td2"><textarea name="description" rows="5" cols="80"><?php echo $this->article['description']; ?></textarea></td>
	</tr>
	<tr class="tr1">
		<td class="td1">图片</td>
		<td class="td2">
			<?php if ($this->article['image_small']): ?>
			<span class="cc mb10"><img src="<?php echo SiteConfig::getSiteBaseUrl() . $this->article['image_small']; ?>" /></span>
			<?php endif; ?>
			<input type="file" name="image">
		</td>
	</tr>
	<tr class="tr1">
		<td class="td1">内容</td>
		<td class="td2"><?php echo $this->editor->editor('content', $this->article['content']);?></textarea></td>
	</tr>
</table>
</div>
<div class="tac mb10">
	<span class="btn"><span><button type="submit" onfocus="blur();">提 交</button></span></span>
	<span class="btn"><span><button type="button">返回</button></span></span>
</div>
</form>

</div>

<script language="javascript">
$(document).ready(function() {
	$("span > span > button[type=button]").click(function() {
		history.back();
	});
});
</script>
